﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="BookStore.Register" MasterPageFile="~/Home.Master" Title="Register Account" %>
<asp:Content ID="content" runat="server" ContentPlaceHolderID="cphhome">
<div id="Div1">  <div class="breadcrumb">
        <a href="#">Home</a>
         » <a href="#">Account</a>
         » <a class="last" href="#">Register</a>
      </div>
  <h1>Register Account</h1>
  
  <div class="box-container">
  <p>If you already have an account with us, please login at the <a href="#">login page</a>.</p>
     
        <h2>Your Personal Details</h2>
        <div class="content">
          <table class="form">      
            <tbody><tr>
              <td><span class="required">*</span> Full Name:</td>
              <td> 
                  <asp:TextBox ID="txtfullname" runat="server" Width="242px"></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="rqffullname" runat="server" 
                      ControlToValidate="txtfullname" ErrorMessage="You must imput Fullname!!"></asp:RequiredFieldValidator>
                                                </td>
           
            <tr>
              <td><span class="required">*</span> E-Mail:</td>
              <td> <asp:TextBox ID="txtemail" runat="server" Width="242px" 
                     ></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="rfvemail" runat="server" 
                      ControlToValidate="txtemail" ErrorMessage="You must imput Email!!"></asp:RequiredFieldValidator>
                  <asp:RegularExpressionValidator ID="revfailemail" runat="server" 
                      ControlToValidate="txtemail" ErrorMessage="Not formed ex: contact@gamil.com" 
                      ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                  
                </td>
            </tr>
            <tr>
              <td><span class="required">*</span> Telephone:</td>
              <td> <asp:TextBox ID="txtxphone" runat="server" Width="242px"></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="rfvphone" runat="server" 
                      ControlToValidate="txtxphone" ErrorMessage="You must imput phone!!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
              <td><span class="required">*</span> Address</td>
              <td> <asp:TextBox ID="txtadd" runat="server" Width="242px"></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="rfvaddress" runat="server" 
                      ControlToValidate="txtadd" ErrorMessage="You must imput address!!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
          </tbody></table>
        </div>
        <h2>Your Password</h2>
        <div class="content">
          <table class="form">
            <tbody><tr>
              <td><span class="required">*</span> Password:</td>
              <td> <asp:TextBox ID="txtpass" runat="server" Width="242px" TextMode="Password"></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                      ControlToValidate="txtpass" ErrorMessage="You must imput passwword!!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
              <td><span class="required">*</span> Password Confirm:</td>
              <td><asp:TextBox ID="txtconfirmpass" runat="server" Width="242px" 
                      TextMode="Password"></asp:TextBox> 
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                      ControlToValidate="txtpass" ErrorMessage="You must imput passwword!!"></asp:RequiredFieldValidator>
                  <asp:CompareValidator ID="CompareValidator1" runat="server" 
                      ControlToCompare="txtconfirmpass" ControlToValidate="txtpass" 
                      ErrorMessage="CompareValidator"></asp:CompareValidator>
                </td>
            </tr>
          </tbody></table>
        </div>
                <div class="buttons">
          <div class="right">&nbsp;<a class="button"><span><asp:ImageButton ID="imbregister" 
                  runat="server" AlternateText="Continue" ForeColor="White" 
                  onclick="imbregister_Click" /></span></a>
          </div>
        </div>
            
  </div>
  </div>

</asp:Content>
